#! /bin/sh
# this script uses ImageMagic to cut the needed portions out of png


# upper left
convert frame.png -gravity NorthWest -crop 20x15+0+0 +repage t_aa.png
# upper right
convert frame.png -gravity NorthEast -crop 20x15+0+0 +repage t_ac.png
# lower left
convert frame.png -gravity SouthWest -crop 20x25+0+0 +repage t_ca.png
# lower right
convert frame.png -gravity SouthEast -crop 20x25+0+0 +repage t_cc.png

# upper
convert frame.png -gravity NorthWest -crop 170x15+20+0 +repage t_ab.png
# left
convert frame.png -gravity NorthWest -crop 20x170+0+15 +repage t_ba.png
# right
convert frame.png -gravity NorthEast -crop 20x170+0+15 +repage t_bc.png
# bottom
convert frame.png -gravity SouthWest -crop 170x25+20+0 +repage t_cb.png
